﻿<%@ MasterType VirtualPath="~/Main.master" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="statistics.aspx.cs" Inherits="Touch2Like.Web.Customer.statistics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headcontent" runat="server">
    <link href="/css/smoothness/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery-ui-1.9.1.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".edititem").click(function () {
                $("#ifrEditTag").attr("src", "Popup/Statistics.aspx?TagUID=" + $(this).attr("item-value"));
                $("#dialog").dialog({ height: 800, width: 500, modal: true, resizable: false, minWidth: 800, minHeight: 500, maxWidth: 800, maxHeight: 500 });
            });
        });

        function hideDialog() {
            $("#dialog").dialog("close");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" runat="server">
    <div id="dialog" title="Detail" style="display: none; padding: 0px;">
        <iframe id="ifrEditTag" src="Popup/Statistics.aspx" frameborder="0" style="width: 799px;
            height: 480px;"></iframe>
    </div>
    <div id="header_bottom">
        <div class="container clearfix">
            <div class="sidebar" style="width: 158px; min-height: 200px;">
            <div><a href="/Customer/Dashboard.aspx">Dashboard</a></div>
                                <div>
                    <a href="/Customer/Profile.aspx">My Account</a></div>
                    <div>
                    <a href="/Customer/Main.aspx">Manage Tags</a></div>
<%--                <div>
                    <a href="/Customer/Orders.aspx">Orders</a></div>--%>

                <div>
                    <a href="/Customer/statistics.aspx">Statistics</a></div>
            </div>
            <div class="grid8 table_wrapper">
                <asp:GridView ID="GridView_Tag" runat="server" AutoGenerateColumns="false" Width="700px"
                    AllowPaging="true" AllowSorting="true" PageSize="20" OnPageIndexChanging="GridView_Tag_PageIndexChanging"
                    OnSorting="GridView_Tag_Sorting">
                    <Columns>
                        <asp:TemplateField HeaderText="Tag UID" SortExpression="TagUID">
                            <ItemTemplate>
                                <%#Eval("TagUID") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Alias" SortExpression="Alias">
                            <ItemTemplate>
                                <%#Eval("Alias") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Total touches" SortExpression="TouchCount">
                            <ItemTemplate>
                                <%#Eval("TouchCount")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Last access date" SortExpression="LastTouchDate">
                            <ItemTemplate>
                                <%#Eval("LastTouchDate")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <input type="button" value="View" item-value='<%#Eval("TagUID") %>' class="Submit edititem" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
